Skip to content

[v26.1.x] kafka/server: cap fetch memory allocation at max message size limit#30313

Open
vbotbuildovich wants to merge 1 commit intoredpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30023-v26.1.x-591
Open

[v26.1.x] kafka/server: cap fetch memory allocation at max message size limit#30313
vbotbuildovich wants to merge 1 commit intoredpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30023-v26.1.x-591

Conversation

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Backport of PR #30023

Use kafka_max_message_size_upper_limit_bytes to clamp max_bytes and
max_batch_size in fetch memory allocation instead of the full shard
fetch memory budget. This prevents a single partition with an inflated
max.message.bytes (e.g. UINT32_MAX) from monopolizing the entire
shard's fetch memory, which can starve other partitions and cause
fetch timeouts.

(cherry picked from commit 2b2c4b3)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Apr 28, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants